// Author: wsfuyibing <682805@qq.com>
// Date: 2025-04-10

// Package database Manage mysql connection and connection pool with gorm.
package database

import "sync"

const (
	defaultDriver    = "mysql"
	defaultKey       = "db"
	defaultLifetime  = 180
	defaultMaxActive = 60
	defaultMinIdle   = 1
)

var (
	once = new(sync.Once)
)

func init() {
	once.Do(func() {
		Mgr = (&database{}).init()
	})
}
